  /**
   * Generate time : 2013-07-08 3:08:05
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBYearPlanCM 
 * table comment : 采煤年计划 
 */
public class ZMCBYearPlanCM extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdForeignId = " ";		/* 主表ID*/
	private String fdDepartmentId = " ";		/* 施工部门*/
	private String fdWorkfaceId = " ";		/* 采面*/
	private String fdNum = " ";		/* 序号*/
	private Double fdSurplusLength = new Double(0);		/* 剩余走向*/
	private Double fdSurplusReserve = new Double(0);		/* 剩余储量*/
	private Double fdPlan = new Double(0);		/* 计划量*/
	private Double fdPlanLength = new Double(0);		/* 计划推进*/
	private Double fdSurplus = new Double(0);		/* 年末剩余量*/
	private String fdBeginDate = " ";		/* 开始日期*/
	private String fdEndDate = " ";		/* 结束日期*/
	private Double fdJan = new Double(0);		/* 1月*/
	private Double fdFeb = new Double(0);		/* 2月*/
	private Double fdMar = new Double(0);		/* 3月*/
	private Double fdApr = new Double(0);		/* 4月*/
	private Double fdMay = new Double(0);		/* 5月*/
	private Double fdJun = new Double(0);		/* 6月*/
	private Double fdJul = new Double(0);		/* 7月*/
	private Double fdAug = new Double(0);		/* 8月*/
	private Double fdSep = new Double(0);		/* 9月*/
	private Double fdOct = new Double(0);		/* 10月*/
	private Double fdNov = new Double(0);		/* 11月*/
	private Double fdDec = new Double(0);		/* 12月*/
	private Double fdHeight = new Double(0);		/* 采高*/
	private Double fdWidth = new Double(0);		/* 宽度*/
	private Double fdLength = new Double(0);		/* 走向长度*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHeight");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采高");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWidth");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("宽度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("走向长度");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdForeignId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主表ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("施工部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorkfaceId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("采面");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNum");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("序号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余走向");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplusReserve");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("剩余储量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlan");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanLength");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划推进");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSurplus");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("年末剩余量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeginDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("开始日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("结束日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJan");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("1月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdFeb");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("2月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMar");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("3月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdApr");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("4月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMay");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("5月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJun");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("6月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdJul");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("7月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAug");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("8月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSep");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("9月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOct");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("10月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNov");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("11月");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDec");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("12月");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBYearPlanCM() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdForeignId - 主表ID
	 * @return the fdForeignId
	 */
	public String getFdForeignId() {
		return this.fdForeignId;
	}
	
	/**
	 * set the fdForeignId - 主表ID
	 */
	public void setFdForeignId(String fdForeignId) {
		this.fdForeignId = fdForeignId;
	}
	
	/**
	 * get the fdDepartmentId - 施工部门
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 施工部门
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdWorkfaceId - 采面
	 * @return the fdWorkfaceId
	 */
	public String getFdWorkfaceId() {
		return this.fdWorkfaceId;
	}
	
	/**
	 * set the fdWorkfaceId - 采面
	 */
	public void setFdWorkfaceId(String fdWorkfaceId) {
		this.fdWorkfaceId = fdWorkfaceId;
	}
	
	/**
	 * get the fdNum - 序号
	 * @return the fdNum
	 */
	public String getFdNum() {
		return this.fdNum;
	}
	
	/**
	 * set the fdNum - 序号
	 */
	public void setFdNum(String fdNum) {
		this.fdNum = fdNum;
	}
	
	/**
	 * get the fdSurplusLength - 剩余走向
	 * @return the fdSurplusLength
	 */
	public Double getFdSurplusLength() {
		return this.fdSurplusLength;
	}
	
	/**
	 * set the fdSurplusLength - 剩余走向
	 */
	public void setFdSurplusLength(Double fdSurplusLength) {
		this.fdSurplusLength = fdSurplusLength;
	}
	
	/**
	 * get the fdSurplusReserve - 剩余储量
	 * @return the fdSurplusReserve
	 */
	public Double getFdSurplusReserve() {
		return this.fdSurplusReserve;
	}
	
	/**
	 * set the fdSurplusReserve - 剩余储量
	 */
	public void setFdSurplusReserve(Double fdSurplusReserve) {
		this.fdSurplusReserve = fdSurplusReserve;
	}
	
	/**
	 * get the fdPlan - 计划量
	 * @return the fdPlan
	 */
	public Double getFdPlan() {
		return this.fdPlan;
	}
	
	/**
	 * set the fdPlan - 计划量
	 */
	public void setFdPlan(Double fdPlan) {
		this.fdPlan = fdPlan;
	}
	
	/**
	 * get the fdPlanLength - 计划推进
	 * @return the fdPlanLength
	 */
	public Double getFdPlanLength() {
		return this.fdPlanLength;
	}
	
	/**
	 * set the fdPlanLength - 计划推进
	 */
	public void setFdPlanLength(Double fdPlanLength) {
		this.fdPlanLength = fdPlanLength;
	}
	
	/**
	 * get the fdSurplus - 年末剩余量
	 * @return the fdSurplus
	 */
	public Double getFdSurplus() {
		return this.fdSurplus;
	}
	
	/**
	 * set the fdSurplus - 年末剩余量
	 */
	public void setFdSurplus(Double fdSurplus) {
		this.fdSurplus = fdSurplus;
	}
	
	/**
	 * get the fdBeginDate - 开始日期
	 * @return the fdBeginDate
	 */
	public String getFdBeginDate() {
		return this.fdBeginDate;
	}
	
	/**
	 * set the fdBeginDate - 开始日期
	 */
	public void setFdBeginDate(String fdBeginDate) {
		this.fdBeginDate = fdBeginDate;
	}
	
	/**
	 * get the fdEndDate - 结束日期
	 * @return the fdEndDate
	 */
	public String getFdEndDate() {
		return this.fdEndDate;
	}
	
	/**
	 * set the fdEndDate - 结束日期
	 */
	public void setFdEndDate(String fdEndDate) {
		this.fdEndDate = fdEndDate;
	}
	
	/**
	 * get the fdJan - 1月
	 * @return the fdJan
	 */
	public Double getFdJan() {
		return this.fdJan;
	}
	
	/**
	 * set the fdJan - 1月
	 */
	public void setFdJan(Double fdJan) {
		this.fdJan = fdJan;
	}
	
	/**
	 * get the fdFeb - 2月
	 * @return the fdFeb
	 */
	public Double getFdFeb() {
		return this.fdFeb;
	}
	
	/**
	 * set the fdFeb - 2月
	 */
	public void setFdFeb(Double fdFeb) {
		this.fdFeb = fdFeb;
	}
	
	/**
	 * get the fdMar - 3月
	 * @return the fdMar
	 */
	public Double getFdMar() {
		return this.fdMar;
	}
	
	/**
	 * set the fdMar - 3月
	 */
	public void setFdMar(Double fdMar) {
		this.fdMar = fdMar;
	}
	
	/**
	 * get the fdApr - 4月
	 * @return the fdApr
	 */
	public Double getFdApr() {
		return this.fdApr;
	}
	
	/**
	 * set the fdApr - 4月
	 */
	public void setFdApr(Double fdApr) {
		this.fdApr = fdApr;
	}
	
	/**
	 * get the fdMay - 5月
	 * @return the fdMay
	 */
	public Double getFdMay() {
		return this.fdMay;
	}
	
	/**
	 * set the fdMay - 5月
	 */
	public void setFdMay(Double fdMay) {
		this.fdMay = fdMay;
	}
	
	/**
	 * get the fdJun - 6月
	 * @return the fdJun
	 */
	public Double getFdJun() {
		return this.fdJun;
	}
	
	/**
	 * set the fdJun - 6月
	 */
	public void setFdJun(Double fdJun) {
		this.fdJun = fdJun;
	}
	
	/**
	 * get the fdJul - 7月
	 * @return the fdJul
	 */
	public Double getFdJul() {
		return this.fdJul;
	}
	
	/**
	 * set the fdJul - 7月
	 */
	public void setFdJul(Double fdJul) {
		this.fdJul = fdJul;
	}
	
	/**
	 * get the fdAug - 8月
	 * @return the fdAug
	 */
	public Double getFdAug() {
		return this.fdAug;
	}
	
	/**
	 * set the fdAug - 8月
	 */
	public void setFdAug(Double fdAug) {
		this.fdAug = fdAug;
	}
	
	/**
	 * get the fdSep - 9月
	 * @return the fdSep
	 */
	public Double getFdSep() {
		return this.fdSep;
	}
	
	/**
	 * set the fdSep - 9月
	 */
	public void setFdSep(Double fdSep) {
		this.fdSep = fdSep;
	}
	
	/**
	 * get the fdOct - 10月
	 * @return the fdOct
	 */
	public Double getFdOct() {
		return this.fdOct;
	}
	
	/**
	 * set the fdOct - 10月
	 */
	public void setFdOct(Double fdOct) {
		this.fdOct = fdOct;
	}
	
	/**
	 * get the fdNov - 11月
	 * @return the fdNov
	 */
	public Double getFdNov() {
		return this.fdNov;
	}
	
	/**
	 * set the fdNov - 11月
	 */
	public void setFdNov(Double fdNov) {
		this.fdNov = fdNov;
	}
	
	/**
	 * get the fdDec - 12月
	 * @return the fdDec
	 */
	public Double getFdDec() {
		return this.fdDec;
	}
	
	/**
	 * set the fdDec - 12月
	 */
	public void setFdDec(Double fdDec) {
		this.fdDec = fdDec;
	}
	
	/**
	 * get the fdHeight - 采高
	 * @return the fdHeight
	 */
	public Double getFdHeight() {
		return this.fdHeight;
	}
	
	/**
	 * set the fdHeight - 采高
	 */
	public void setFdHeight(Double fdHeight) {
		this.fdHeight = fdHeight;
	}
	
	/**
	 * get the fdWidth - 宽度
	 * @return the fdWidth
	 */
	public Double getFdWidth() {
		return this.fdWidth;
	}
	
	/**
	 * set the fdWidth - 宽度
	 */
	public void setFdWidth(Double fdWidth) {
		this.fdWidth = fdWidth;
	}
	
	/**
	 * get the fdToLength - 走向长度
	 * @return the fdToLength
	 */
	public Double getFdLength() {
		return this.fdLength;
	}
	
	/**
	 * set the fdToLength - 走向长度
	 */
	public void setFdLength(Double fdLength) {
		this.fdLength = fdLength;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdForeignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdForeignId")), fdForeignId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdWorkfaceId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorkfaceId")), fdWorkfaceId));
		setFdNum(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNum")), fdNum));
		setFdSurplusLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusLength")), fdSurplusLength));
		setFdSurplusReserve(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplusReserve")), fdSurplusReserve));
		setFdPlan(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlan")), fdPlan));
		setFdPlanLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanLength")), fdPlanLength));
		setFdSurplus(NumberUtils.toDouble(StringUtils.toString(map.get("fdSurplus")), fdSurplus));
		setFdBeginDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeginDate")), fdBeginDate));
		setFdEndDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDate")), fdEndDate));
		setFdJan(NumberUtils.toDouble(StringUtils.toString(map.get("fdJan")), fdJan));
		setFdFeb(NumberUtils.toDouble(StringUtils.toString(map.get("fdFeb")), fdFeb));
		setFdMar(NumberUtils.toDouble(StringUtils.toString(map.get("fdMar")), fdMar));
		setFdApr(NumberUtils.toDouble(StringUtils.toString(map.get("fdApr")), fdApr));
		setFdMay(NumberUtils.toDouble(StringUtils.toString(map.get("fdMay")), fdMay));
		setFdJun(NumberUtils.toDouble(StringUtils.toString(map.get("fdJun")), fdJun));
		setFdJul(NumberUtils.toDouble(StringUtils.toString(map.get("fdJul")), fdJul));
		setFdAug(NumberUtils.toDouble(StringUtils.toString(map.get("fdAug")), fdAug));
		setFdSep(NumberUtils.toDouble(StringUtils.toString(map.get("fdSep")), fdSep));
		setFdOct(NumberUtils.toDouble(StringUtils.toString(map.get("fdOct")), fdOct));
		setFdNov(NumberUtils.toDouble(StringUtils.toString(map.get("fdNov")), fdNov));
		setFdDec(NumberUtils.toDouble(StringUtils.toString(map.get("fdDec")), fdDec));
		setFdHeight(NumberUtils.toDouble(StringUtils.toString(map.get("fdHeight")), fdHeight));
		setFdWidth(NumberUtils.toDouble(StringUtils.toString(map.get("fdWidth")), fdWidth));
		setFdLength(NumberUtils.toDouble(StringUtils.toString(map.get("fdLength")), fdLength));
		
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdForeignId",StringUtils.toString(fdForeignId, eiMetadata.getMeta("fdForeignId")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdWorkfaceId",StringUtils.toString(fdWorkfaceId, eiMetadata.getMeta("fdWorkfaceId")));	
			map.put("fdNum",StringUtils.toString(fdNum, eiMetadata.getMeta("fdNum")));	
			map.put("fdSurplusLength",StringUtils.toString(fdSurplusLength, eiMetadata.getMeta("fdSurplusLength")));	
			map.put("fdSurplusReserve",StringUtils.toString(fdSurplusReserve, eiMetadata.getMeta("fdSurplusReserve")));	
			map.put("fdPlan",StringUtils.toString(fdPlan, eiMetadata.getMeta("fdPlan")));	
			map.put("fdPlanLength",StringUtils.toString(fdPlanLength, eiMetadata.getMeta("fdPlanLength")));	
			map.put("fdSurplus",StringUtils.toString(fdSurplus, eiMetadata.getMeta("fdSurplus")));	
			map.put("fdBeginDate",StringUtils.toString(fdBeginDate, eiMetadata.getMeta("fdBeginDate")));	
			map.put("fdEndDate",StringUtils.toString(fdEndDate, eiMetadata.getMeta("fdEndDate")));	
			map.put("fdJan",StringUtils.toString(fdJan, eiMetadata.getMeta("fdJan")));	
			map.put("fdFeb",StringUtils.toString(fdFeb, eiMetadata.getMeta("fdFeb")));	
			map.put("fdMar",StringUtils.toString(fdMar, eiMetadata.getMeta("fdMar")));	
			map.put("fdApr",StringUtils.toString(fdApr, eiMetadata.getMeta("fdApr")));	
			map.put("fdMay",StringUtils.toString(fdMay, eiMetadata.getMeta("fdMay")));	
			map.put("fdJun",StringUtils.toString(fdJun, eiMetadata.getMeta("fdJun")));	
			map.put("fdJul",StringUtils.toString(fdJul, eiMetadata.getMeta("fdJul")));	
			map.put("fdAug",StringUtils.toString(fdAug, eiMetadata.getMeta("fdAug")));	
			map.put("fdSep",StringUtils.toString(fdSep, eiMetadata.getMeta("fdSep")));	
			map.put("fdOct",StringUtils.toString(fdOct, eiMetadata.getMeta("fdOct")));	
			map.put("fdNov",StringUtils.toString(fdNov, eiMetadata.getMeta("fdNov")));	
			map.put("fdDec",StringUtils.toString(fdDec, eiMetadata.getMeta("fdDec")));	
			map.put("fdHeight",StringUtils.toString(fdHeight, eiMetadata.getMeta("fdHeight")));	
			map.put("fdWidth",StringUtils.toString(fdWidth, eiMetadata.getMeta("fdWidth")));	
			map.put("fdLength",StringUtils.toString(fdLength, eiMetadata.getMeta("fdLength")));	
			
		return map;
	
	}
}